package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("test.txt");
        /*
            int 型整数97的2进制:00000000 00000000 00000000 01100001
            在ASC编码中01100001表示小写字母"a"
         */
        for (int i =65;i<91;i++){
            fos.write(i);
        }
        System.out.println("写出完毕");
        fos.close();


    }
}
